<template>
  <div>
    <div class="act_img">
      <img src="@/assets/images/equity/caifu/9.png" @click="jump('1')" alt />
    </div>
    <div class="act_img">
      <img src="@/assets/images/equity/caifu/15.png" @click="jump('2')" alt />
    </div>
    <div class="act_img">
      <img src="@/assets/images/equity/caifu/16.png" @click="jump('3')" alt />
    </div>
    <div class="act_img">
      <img src="@/assets/images/equity/caifu/17.png" @click="jump('4')" alt />
    </div>
  </div>
</template>
<script>
// import moment from 'moment';
import weixin from '@/components/wx/wx.js';
import { baseUrl } from '@/config/env';
export default {
  data() {
    return {};
  },
  mounted() {
    this.initWxChat();
  },
  methods: {
    initWxChat() {
      const url = window.location.href.split('#')[0];
      const param = {
        title: '贵金属',
        desc: '',
        link:
          baseUrl + 'entrance/goto?redir=' + window.location.href.split('#')[1],
        imgUrl: 'http://img.580travel.com/youchu/guijinshu.png',
        localUrl: url
      };
      weixin.wxChat(this, param);
    },
    jump(page) {
      if (page === '1') {
        window.location.href =
          'https://mp.weixin.qq.com/s/Et56eRrE1y8xptwwcozNnw';
      } else if (page === '2') {
        window.location.href =
          'https://mp.weixin.qq.com/s/slU5d5cdj8MMbTorvBBvRw';
      } else if (page === '3') {
        window.location.href =
          'https://mp.weixin.qq.com/s/svJCB13qVS6tvHFZQBRiyg';
      } else if (page === '4') {
        window.location.href =
          'https://mp.weixin.qq.com/s/H8IMd7h8Pe5YIM7WkH4T2g';
      }
    }
  },
  components: {}
};
</script>
<style lang="scss" scoped>
.act_img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  img {
    width: 710px;
    margin-top: 30px;
  }
}
</style>
